package com.game.data.vo
{
	import base.BaseVO;
	
	public final class LevelConfigVO extends BaseVO
	{
		public function LevelConfigVO()
		{
			super();
		}
		
		//关卡名称;
		public var levelName:String;
		//关卡ID;
		public var levelID:String;
		//背景音乐;
		public var bgmName:String;
		//下一关ID;格式：stage-level;
		public var nextLevelID:String;
		//默认进入的子副本;//格式：stage-level;
		public var subLevelID:String;
		//关卡开始时动画;
		public var levelStartCartoon:String;
		//关卡结束时动画;
		public var levelOverCartoon:String;
		//镜头行为描述，分为水平、垂直、自由，对应的属性为horizontal、vertical、free;
		public var cameraMode:String = "horizontal";
		//额外资源;
		public var extraAssets:Array = [];
		//传送门数据;
		public var transDoorArr:Array = [];
		//停止点数据;
		public var stopPointArr:Array = [];
		//出怪点数据;
		public var monsterAppearPointArr:Array = [];
		
		public function get curStage():int
		{
			return getLevelIDArray()[0];
		}
		
		public function get curLevel():int
		{
			return getLevelIDArray()[1];
		}
		
		public function getLevelIDArray():Array
		{
			if(this.levelID) return this.levelID.split("_");
			return null;
		}
		
		public function getSubLevelIDArray():Array
		{
			if(this.subLevelID) return this.subLevelID.split("_");
			return null;
		}
		
		public function getNextLevelIDArray():Array
		{
			if(this.nextLevelID) return this.nextLevelID.split("_");
			return null;
		}
	}
}
